import "@site/src/languages/highlight";

# Object

**Description:**

&emsp;&emsp;An class that is a base class for many C++ objects that managed by Lua VM.

**Class Object:** [Object Class](/docs/api/Class%20Object/Object).

## id

**Type:** Readonly Field.

**Description:**

&emsp;&emsp;The ID of the C++ object.

**Signature:**
```tl
const id: integer
```

## ref

**Type:** Readonly Field.

**Description:**

&emsp;&emsp;The Lua reference ID for this C++ object.

**Signature:**
```tl
const ref: integer
```